package com.idea.zd.sys.train.collection;

import java.util.*;

public class MapTest {

    public static void  main(String [] args){
        HashMap map = new HashMap();
        map.put(5,"123");
        map.put(1,"555");
        map.put(3,"555");
        map.put(8,"555");
        Iterator i =  map.entrySet().iterator();

        while(i.hasNext()){
            System.out.println(i.next());
        }

        LinkedHashMap linkedHashSet = new LinkedHashMap();
        linkedHashSet.put(5,"123");
        linkedHashSet.put(1,"555");

       /* Iterator i =  linkedHashSet.entrySet().iterator();

        while(i.hasNext()){
            System.out.println(i);
        }*/
    }
}
